package tgc.edu.yzy.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import tgc.edu.yzy.custom.CommonRepository;
import tgc.edu.yzy.entity.BookRecord;
import tgc.edu.yzy.entity.User;
@Repository
public interface BookRecordReoisitory extends CommonRepository<BookRecord, Integer>{

	public List<BookRecord> findByUser(User user);

	public List<BookRecord> findByUserAndState(User user, String state);

}
